package com.face.server.repository;

import com.face.server.entity.Camera;

import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;
import java.util.Optional;

public interface CameraRepository extends MongoRepository<Camera, String> {

    Optional<Camera> findByMac(String mac);

    List<Camera> findByClosedOrDormitoryBuildNum(boolean closed, int build, Pageable pageable);

    List<Camera> findBy(Pageable pageable);


}
